<%@ page import="rainQuality.servlet.RainManageService" %>
<%@ page import="rainQuality.servlet.impl.RainManageServiceImpl" %>
<%@ page import="rainQuality.entity.RainManage" %>
<%@ page import="java.util.List" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Lenovo
  Date: 2021/9/15
  Time: 13:57
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<%
    RainManageService rainManageService=new RainManageServiceImpl();
    List<RainManage> listr=rainManageService.select();
    request.setAttribute("listr",listr);
%>
<body>
<table border="1" align="center">
    <tr>
        <th>序号</th>
        <th>区域名称</th>
        <th>监测时间</th>
        <th>雨量值</th>
        <th>监测站</th>
        <th>站点地址</th>
        <th>操作</th>
    </tr>
    <c:forEach items="${requestScope.listr}" var="l">
        <tr>
            <td>${l.id}</td>
            <td>${l.name}</td>
            <td>${l.date}</td>
            <td>${l.rain}</td>
            <td>${l.stati}</td>
            <td>${l.add}</td>
            <td><a href="http://localhost:8080/untitled1_war_exploded/scs?id=${l.id}">删除</a></td>
        </tr>
    </c:forEach>
    <a href="RainManag/Xz.jsp" style="position: absolute;top:170px;left: 540px;">新增雨量监测信息</a>
</table>
</body>
</html>
